<!doctype html>
<html>

<head>
	<meta charset="utf-8">
	<title><%=shopDetail.name%></title>
	<% include  ../template/commonCss.ejs %>
	<% include  ../template/commonJs.ejs %>
	<link href="<%=resUrl%>/css/shop/detail.css" rel="stylesheet" type="text/css" />
	<% include ../template/chatLister.ejs %>
</head>

<body ontouchstart>
	<% var topTitle = shopDetail.name ;var topReturnType = ''%>
	<% include ../template/topReturn.ejs %>
	<div class="sdetail-top" id="sdetail-content" <%if(locals.token && token != ''){%>style="top:0;"<%}%> >
		
	</div>
	<script id="sdetail" type="text/html">
		{{if data}}
			<input type="hidden" name="userId" value="{{data.userId}}"/>
			<div class="sdetail-top-left">
				<img class="sdetail-shop-logo" style="background:url({{data.image}}?x-oss-process=image/resize,w_150) center center no-repeat;background-size:100% auto;" alt="">
			</div>
			<div class="sdetail-top-right">
				<div class="sdetail-top-bor shopname" style="margin-bottom:0;"><i class="iconfont icon-dianzhu bulecolor"></i>{{data.name}}</div>
				<div class="sdetail-top-bor"><i class="iconfont icon-liulan bulecolor"></i>{{data.viewCount}}</div> 
				<div class="sdetail-top-bor"><i class="iconfont icon-haoping bulecolor"></i>{{data.goodEvaluationRate * 100}}%</div>
				<div class="sdetail-top-bor"><i class="iconfont icon-leimupinleifenleileibie bulecolor"></i>{{data.mainBusinessName}}</div> 
				<div class="sdetail-top-bor"><i class="iconfont icon-city bulecolor"></i>{{data.regionShowName}}</div>
				<div class="sdetail-top-bor" style="margin-right:0;"><i class="iconfont icon-naozhong bulecolor"></i>{{data.createDate | TimestampToDate}}创店</div>
				{{if data.personalAuthentication>0}}<div class="sdetail-top-auth sdetail-top-orange"><i class="iconfont icon-credentials_icon"></i>身份认证</div>{{/if}}
				{{if data.mobileAuthentication>0}}<div class="sdetail-top-auth sdetail-top-green"><i class="iconfont icon-shouji"></i>手机认证</div>{{/if}}
				{{if data.marginAuthentication>0}}<div class="sdetail-top-auth sdetail-top-brightred"><i class="iconfont icon-baozhengjin"></i>消保</div>{{/if}}
				{{if data.personalAuthentication<=0 && data.mobileAuthentication<=0 && data.marginAuthentication<=0}}<div class="sdetail-top-auth sdetail-top-orange">暂无任何认证</div>{{/if}}
				<div class="auto-height"></div>
			</div>
			<div class="auto-height"></div>
			<div class="sdetail-top-bottom">
				<div class="sdetail-bottom-item">
					<i class="iconfont icon-message"></i>&nbsp;私信卖家
					<div class="line"></div>
				</div>
				<div class="sdetail-bottom-item">
					<i class="iconfont icon-attention"></i>&nbsp;关注店铺
				</div>
				<!--<div class="sdetail-bottom-item sdetail-bottom-orange"><i class="iconfont icon-sousuo"></i>搜索</div>-->
			</div>
		{{/if}}
	</script>
	<div class="weui-tab" <%if(locals.token && token != ''){%>style="top:3.2rem;"<%}%> >
		<div class="weui-navbar" <%if(locals.token && token != ''){%>style="top:3.2rem;"<%}%>>
			<a class="weui-navbar__item <%if(!isYijia){%>weui-bar__item--on<%}%>" href="#tab2">
				拍卖藏品
			</a>
			<a class="weui-navbar__item <%if(isYijia){%>weui-bar__item--on<%}%>" href="#tab1">
				议价藏品
			</a>
			<a class="weui-navbar__item" href="#tab4">
				店铺专场
			</a>
			<a class="weui-navbar__item" href="#tab3">
				店铺评价
			</a>
		</div>
		<div class="weui-tab__bd">
			<div id="tab2" class="weui-tab__bd-item <%if(!isYijia){%>weui-tab__bd-item--active<%}%>">
				<!--下拉刷新-->
				<div class="weui-pull-to-refresh__layer" style="padding: 5px;">
					<div class="weui-pull-to-refresh__arrow"></div>
					<div class="weui-pull-to-refresh__preloader"></div>
					<div class="down">下拉刷新</div>
					<div class="up">释放刷新</div>
					<div class="refresh">正在刷新</div>
				</div>
				<div class="weipai-list" id="paimai-content">
					<div class="left-list" id="paimai-left-list-content"></div>
					<div class="right-list" id="paimai-right-list-content"></div>
					<div class="auto-height"></div>
				</div>
				<script id="paimai-left-list" type="text/html">
					{{each list as product i}}
						<a class="lot" href="javascript:visitUrl('/auctionCollectDetail?id={{product.id}}',true)">
							<div class="info">
								<div class="pic"><img src="{{product.coverImage}}?x-oss-process=image/resize,w_500"></div>
								<div class="title">{{product.name}}</div>
								<div class="price">
									<text>¥{{product.nowPrice}}</text>
									<div class="time">
										<i class="iconfont icon-naozhong" style="font-size:0.2rem"></i><time sign="unmake" time="{{product.factEndDate | CountdownTime}}"></time>
									</div>
								</div>
							</div>
						</a>
					{{/each}}
				</script>	
				<script id="paimai-right-list" type="text/html">
					{{each list as product i}}
						<a class="lot" href="javascript:visitUrl('/auctionCollectDetail?id={{product.id}}',true)">
							<div class="info">
								<div class="pic"><img src="{{product.coverImage}}?x-oss-process=image/resize,w_500"></div>
								<div class="title">{{product.name}}</div>
								<div class="price">
									<text>¥{{product.nowPrice}}</text>
									<div class="time">
										<i class="iconfont icon-naozhong" style="font-size:0.2rem"></i><time sign="unmake" time="{{product.factEndDate | CountdownTime}}"></time>
									</div>
								</div>
							</div>
						</a>
					{{/each}}
				</script>
				<div class="weui-loadmore">
					<i class="weui-loading"></i>
					<span class="weui-loadmore__tips">正在加载</span>
				</div>
				<div class="weui-loadmore weui-loadmore_line" style="display:none;" id="nomore">
					<span class="weui-loadmore__tips">到底了</span>
				</div>
			</div>
			<div id="tab1" class="weui-tab__bd-item <%if(isYijia){%>weui-tab__bd-item--active<%}%>">
				<!--下拉刷新-->
				<div class="weui-pull-to-refresh__layer" style="padding: 5px;">
					<div class="weui-pull-to-refresh__arrow"></div>
					<div class="weui-pull-to-refresh__preloader"></div>
					<div class="down">下拉刷新</div>
					<div class="up">释放刷新</div>
					<div class="refresh">正在刷新</div>
				</div>
				<div class="weipai-list" id="yijia-content">
					<div class="left-list" id="yijia-left-list-content"></div>
					<div class="right-list" id="yijia-right-list-content"></div>
					<div class="auto-height"></div>
				</div>
				<script id="yijia-left-list" type="text/html">
					{{each list as product i}}
						<a class="lot" href="javascript:visitUrl('/collectDetail?id={{product.id}}',true)">
							<div class="info">
								<div class="pic"><img src="{{product.coverImage}}?x-oss-process=image/resize,w_500"></div>
								<div class="title">{{product.name}}</div>
								<div class="price">
									<text>¥{{product.nowPrice}}</text>
								</div>
							</div>
						</a>
					{{/each}}
				</script>	
				<script id="yijia-right-list" type="text/html">
					{{each list as product i}}
						<a class="lot" href="javascript:visitUrl('/collectDetail?id={{product.id}}',true)">
							<div class="info">
								<div class="pic"><img src="{{product.coverImage}}?x-oss-process=image/resize,w_500"></div>
								<div class="title">{{product.name}}</div>
								<div class="price">
									<text>¥{{product.nowPrice}}</text>
								</div>
							</div>
						</a>
					{{/each}}
				</script>
				<div class="weui-loadmore">
					<i class="weui-loading"></i>
					<span class="weui-loadmore__tips">正在加载</span>
				</div>
				<div class="weui-loadmore weui-loadmore_line" style="display:none;" id="nomore">
					<span class="weui-loadmore__tips">到底了</span>
				</div>
			</div>
			<div id="tab4" class="weui-tab__bd-item">
				<div class="zc-list" id="zc-list">
					<!--下拉刷新-->
					<div class="weui-pull-to-refresh__layer" style="padding: 5px;">
						<div class="weui-pull-to-refresh__arrow"></div>
						<div class="weui-pull-to-refresh__preloader"></div>
						<div class="down">下拉刷新</div>
						<div class="up">释放刷新</div>
						<div class="refresh">正在刷新</div>
					</div>
					<div class="container" id="zc-content">
					</div>
					<div class="weui-loadmore" id="loadmore">
						<i class="weui-loading"></i>
						<span class="weui-loadmore__tips">正在加载</span>
					</div>
					<div class="weui-loadmore weui-loadmore_line" style="display:none;" id="nomore">
						<span class="weui-loadmore__tips">到底了</span>
					</div>
				</div>
				<script id="zc" type="text/html">
					{{each list as zc i}}
						<div class="zc">
							<a class="shop" href="javascript:visitUrl('/special_detail?id={{zc.id}}',true)">
								<div class="img" style="background: url({{zc.userDetail.photo}}?x-oss-process=image/resize,w_200) no-repeat 0 center;background-size: 100% auto;">
								</div>
								<div class="info">
									<div class="name">
										<i class="iconfont icon-jishi"></i>【{{zc.userDetail.name}}】{{zc.name}}
									</div>
									<div class="row">
										<div class="down-count">
											<div class="text">开拍时间:</div>
											<div class="date">
												<i class="iconfont icon-naozhong"></i>
												<div class="val">{{ zc.factEndDate | timestampTransfor}}</div>
											</div>
										</div>
										<div class="antique-count">
											<img src="../img/gudianhuaping.png"/>{{zc.productHoldCount}}
										</div>
									</div>
								</div>
							</a>
							<div class="antiques">
								{{each zc.productList as product i}}
								<a class="antique" href="javascript:visitUrl('/auctionCollectDetail?id={{product.id}}',true)">
									<div class="img"  style="background: url({{product.coverImage}}?x-oss-process=image/resize,w_400) no-repeat 0 center;background-size: 100% auto;">
									</div>
									<div class="title">{{product.name}}</div>
									<div class="price">¥{{product.nowPrice}}</div>
								</a>
								{{/each}}
							</div>
						</div>
					{{/each}}
				</script>	
			</div>
			<div id="tab3" class="weui-tab__bd-item">
				<!--下拉刷新-->
				<div class="weui-pull-to-refresh__layer" style="padding: 5px;">
					<div class="weui-pull-to-refresh__arrow"></div>
					<div class="weui-pull-to-refresh__preloader"></div>
					<div class="down">下拉刷新</div>
					<div class="up">释放刷新</div>
					<div class="refresh">正在刷新</div>
				</div>
				<div class="sdetail-evaluate-list" id="pingjia-content">
				</div>
				<script id="pingjia" type="text/html">
					{{each list as pingjia i}}
						<div class="sdetail-shop">
							<div class="sdetail-shop-left">
								{{if pingjia.userDetail.photo}}
									<img class="sdetail-shop-logo" src="{{pingjia.userDetail.photo}}" alt="">
								{{else}}
									<img class="sdetail-shop-logo" src="<%=resUrl%>/img/gudianhuaping.png" />
								{{/if}}
							</div>
							<div class="sdetail-shop-right">
								<div class="sdetail-shop-name">{{pingjia.userDetail.name}}</div>
								<div class="sdetail-shop-time"><img src="/img/global/star-{{pingjia.evaluateDetail.level}}.png"/>{{pingjia.evaluateDetail.evaluateDate | TimestampToTime}}</div>
								<div class="sdetail-shop-text">{{pingjia.evaluateDetail.content}}</div>
							</div>
						</div>
					{{/each}}
				</script>
				<div class="weui-loadmore">
					<i class="weui-loading"></i>
					<span class="weui-loadmore__tips">正在加载</span>
				</div>
				<div class="weui-loadmore weui-loadmore_line" style="display:none;" id="nomore">
					<span class="weui-loadmore__tips">到底了</span>
				</div>
			</div>
		</div>
	</div>

	<script>
		var id = '<%=id%>';
	</script>
	<script type="text/javascript" src="<%=resUrl%>/js/shop/detail.js"></script>
</body>

</html>